package com.oobi.showlive.cloudsql.data.reg;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

@PersistenceCapable
public class Registration {
	@PrimaryKey
    @Persistent
    private String username;


	@Persistent
    private String password;


    public Registration(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public Key getKey() {
    	return KeyFactory.createKey(Registration.class.getSimpleName(), username);
    }
   
    public String getUserName() {
    	return username;
    }
    
    public void setUserName(String username) {
    	this.username = username;
    }
    
    public String getPassword() {
    	return password;
    }
    
    public void setPassword(String password) {
    	this.password = password;
    }
   
}